#ifndef CAN_CANDSP_CANBASIC_H_
#define CAN_CANDSP_CANBASIC_H_
#include "DSP28x_Project.h"

typedef struct CAN_SCAN{
    Uint16  timer;
    Uint16  flag;
    Uint16  count;
    Uint16  cms[6][16];
}CAN_SCAN;
extern CAN_SCAN CanScan;

void CanGpio_init(void);
void CanBasic_init(void);
Uint8 CanBasic_sendMbox(Uint8 id);
Uint8 CanBasic_recieveMBox(Uint16 *pbuff);
Uint8 send_RTR(Uint8 MBOX_n);
typedef enum
{
  ZERO_CMS = 380,
  ONE_CMS = ZERO_CMS+16,
  TWO_CMS = ONE_CMS+16,
  THREE_CMS = TWO_CMS+16,
  FOUUR_CMS = THREE_CMS+16,
  FIVE_CMS = FOUUR_CMS+16
}CMS;




#endif /* CAN_CANDSP_CANBASIC_H_ */
